package maps.com.wsfk.ssm.user;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wsfk.ssm.entity.HandBook;
import com.wsfk.ssm.entity.Picture;
import com.wsfk.ssm.entity.User;
import com.wsfk.ssm.entity.Zip;

public interface PictureMapper {

	public int addPicture(Picture picture);
	
	public int updateByStatus(@Param(value="id")String id , @Param(value="createStatus")String createStatus);
	
	public int addZip(Zip zip);
	
	public List<Picture> queryAllPicByBook(@Param(value="handBookId")String handBookId);
	
	public List<Picture> queryPagePicByBook(@Param(value="handBookId")String handBookId,
										   @Param(value="startIndex")String startIndex,
										   @Param(value="endIndex")String endIndex);
	
	public int queryPagePicCountByBookId(@Param(value="handBookId")String handBookId);
	
	
	public HandBook queryBookById(@Param(value="id")String id);
	
	public User queryUserById(@Param(value="id")String id);
	
	public Picture queryPictureById(@Param(value="picId")String picId);
	
	
}
